package org.zhouhe.web.tag.function;

public class FmtNumberFunction {
	private String funName;
	private String pattern;
	public FmtNumberFunction(String funName, String pattern){
		this.funName = funName;
		this.pattern = pattern;
	}
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("\r\n  function "+ funName +"(val, rowData){");
		sb.append("\r\n    return FormaterUtils.fmt_date(val, '"+ pattern +"');");
		sb.append("\r\n  }");
		return sb.toString();
	}
}
